package pw.ucoin.www.customview2

import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.BitmapShader
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View

/**
 * Created by lgs on 2018/7/19.
 */
class BitmapShaderView @JvmOverloads constructor(
        context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : View(context, attrs, defStyleAttr) {

    fun getBitmap(): Bitmap {
        return BitmapFactory.decodeResource(resources, R.drawable.)
    }

    private val paint = Paint(Paint.ANTI_ALIAS_FLAG)
    private val shader = BitmapShader()
}